﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Truron.SysCenter.Model;
using Truron.Utility;

namespace Truron.Purchase.Model
{
	[Serializable]
	[PrimaryKey("Id")]
	[Table("Purchase_OtherData")]
	[RedisKey("Purchase_OtherData")]
	public  class Purchase_OtherData: Utility.BaseData
	{
																						        public string Code {get;set;}
						        public string Name {get;set;}
						        public int Num {get;set;}
					public void Create(UserCache userInfo)
		{
			this.CreateUser = userInfo.UserId; 
			this.CreateTime = DateTime.Now;
		}
		public void Modify(UserCache userInfo)
		{
			this.LastUpdateUser = userInfo.UserId;
			this.LastUpdateTime = DateTime.Now;
		}
	}


}
